package org.finesys.common.sensitive.core.annotation.fixed;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import org.finesys.common.sensitive.core.annotation.base.SensitiveInfo;
import org.finesys.common.sensitive.core.handler.fixed.MobileSensitiveHandler;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@SensitiveInfo(handler = MobileSensitiveHandler.class)

public @interface MobileSensitive {

	/**
	 * 前缀保留长度
	 */
	int front() default 3;

	/**
	 * 后缀保留长度
	 */
	int end() default 4;

	/**
	 * 替换规则
	 */
	String replacer() default "*";

}
